package com.bdk.middle.common.status;

public enum ErrorCode  {

    SYSTEM_SUCCESS(200, "操作成功"),

    NOT_LOGIN(401, "未登陆"),

    UNAUTHORIZED_EXCEPTION(403, "权限不足"),

    SYSTEM_EXCEPTION(500, "系统繁忙"),

    SYSTEM_COPY_OBJECT_ERROR(500, "复制对象错误"),

    SERVICE_UNAVAILABLE(503, "流量已满"),

    SYSTEM_INCORRECT_PARAM(504, "参数错误"),

    REQUEST_PARAM_ERROR(505, "请求参数错误"),
    /**
     * 用户相关状态码
     */
    USER_ADD_ERROR(1001, "添加用户失败"),

    USER_EDIT_ERROR(1002, "修改用户失败"),

    USER_DELETE_ERROR(1003, "删除用户失败"),

    USER_GET_ERROR(1004, "获取用户失败"),

    USER_LIST_ERROR(1005, "获取用户列表失败"),

    USER_DOES_NOT_EXIST(1006, "用户名不存在"),

    USER_EDIT_PASSWORD_ERROR(1007, "用户修改失败"),

    USER_NAME_IS_EXIST(1008, "用户名已存在"),

    USER_IS_NO_EXIST(1009, "用户不存在"),

    USER_ACCOUNT_PASSWORD_ERROR(1010, "账号密码错误"),


    /**
     * 系统角色状态码
     */
    ROLE_ADD_ERROR(2001, "添加角色失败"),

    ROLE_EDIT_ERROR(2002, "修改角色失败"),

    ROLE_DELETE_ERROR(2003, "删除角色失败"),

    ROLE_GET_ERROR(2004, "获取角色失败"),

    ROLE_LIST_ERROR(2005, "获取角色列表失败"),

    ROLE_BIND_USER_ERROR(2006, "用户绑定角色失败"),

    ROLE_UNBIND_USER_ERROR(2007, "用户解除绑定角色失败"),

    ROLE_ALREADY_OWN_THIS_PERMISSION(2008, "用户已经拥有该权限"),

    ROLE_ALREADY_OWN(2009, "用户已经拥有角色"),


    /**
     * 系统权限状态码
     */
    PERMISSION_ADD_ERROR(3001, "添加权限失败"),

    PERMISSION_EDIT_ERROR(3002, "修改权限失败"),

    PERMISSION_DELETE_ERROR(3003, "删除权限失败"),

    PERMISSION_GET_ERROR(3004, "获取权限失败"),

    PERMISSION_LIST_ERROR(3005, "获取权限列表失败"),

    PERMISSION_BIND_ROLE_ERROR(3006, "角色绑定权限失败"),

    PERMISSION_UNBIND_ROLE_ERROR(3007, "角色全部权限解除绑定失败"),

    PERMISSION_GET_NODE_LIST_ERROR(3008, "角色全部权限解除绑定失败"),

    PERMISSION_NO_ANY(3009, "角色没有任何权限"),

    /**
     *
     */
    TENANT_ADD_ERROR(4001, "添加租户失败"),

    TENANT_EDIT_ERROR(4002, "修改租户失败"),

    TENANT_DELETE_ERROR(4003, "删除租户失败"),

    TENANT_GET_ERROR(4004, "获取租户失败"),

    TENANT_LIST_ERROR(4005, "获取租户列表失败"),

    TENANT_CHECK_ERROR(4006, "审核租户失败"),

    /**
     *
     */
    TENANT_USER_ADD_ERROR(5001, "添加权限失败"),

    TENANT_USER_EDIT_ERROR(5002, "修改权限失败"),

    TENANT_USER_DELETE_ERROR(5003, "删除权限失败"),

    TENANT_USER_GET_ERROR(5004, "获取权限失败"),

    TENANT_USER_LIST_ERROR(5005, "获取权限列表失败"),

    /**
     *
     */
    TENANT_ROLE_ADD_ERROR(6001, "添加权限失败"),

    TENANT_ROLE_EDIT_ERROR(6002, "修改权限失败"),

    TENANT_ROLE_DELETE_ERROR(6003, "删除权限失败"),

    TENANT_ROLE_GET_ERROR(6004, "获取权限失败"),

    TENANT_ROLE_LIST_ERROR(6005, "获取权限列表失败"),

    /**
     *
     */
    TENANT_PERMISSION_ADD_ERROR(7001, "添加权限失败"),

    TENANT_PERMISSION_EDIT_ERROR(7002, "修改权限失败"),

    TENANT_PERMISSION_DELETE_ERROR(7003, "删除权限失败"),

    TENANT_PERMISSION_GET_ERROR(7004, "获取权限失败"),

    TENANT_PERMISSION_LIST_ERROR(7005, "获取权限列表失败"),

    /**
     *
     */
    TENANT_POSITION_ADD_ERROR(8001, "添加权限失败"),

    TENANT_POSITION_EDIT_ERROR(8002, "修改权限失败"),

    TENANT_POSITION_DELETE_ERROR(8003, "删除权限失败"),

    TENANT_POSITION_GET_ERROR(8004, "获取权限失败"),

    TENANT_POSITION_LIST_ERROR(8005, "获取权限列表失败"),

    /**
     *
     */
    TENANT_EMPLOYEE_ADD_ERROR(9001, "添加权限失败"),

    TENANT_EMPLOYEE_EDIT_ERROR(9002, "修改权限失败"),

    TENANT_EMPLOYEE_DELETE_ERROR(9003, "删除权限失败"),

    TENANT_EMPLOYEE_GET_ERROR(9004, "获取权限失败"),

    TENANT_EMPLOYEE_LIST_ERROR(9005, "获取权限列表失败"),

    /**
     *
     */
    APP_MANAGER_ADD_ERROR(10001, "添加权限失败"),

    APP_MANAGER_EDIT_ERROR(10002, "修改权限失败"),

    APP_MANAGER_DELETE_ERROR(10003, "删除权限失败"),

    APP_MANAGER_GET_ERROR(10004, "获取权限失败"),

    APP_MANAGER_LIST_ERROR(10005, "获取权限列表失败"),

    APP_MODULE_ADD_ERROR(10006, "获取权限列表失败"),

    APP_MODULE_DELETE_ERROR(10007, "获取权限列表失败"),


    /**
     *Category
     */
    CATEGORY_ADD_ERROR(12001, "添加类目失败"),

    CATEGORY_EDIT_ERROR(12002, "修改类目失败"),

    CATEGORY_DELETE_ERROR(12003, "删除类目失败"),

    CATEGORY_GET_ERROR(12004, "获取类目失败"),

    CATEGORY_LIST_ERROR(12005, "获取类目列表失败"),

    CATEGORY_MAX_100(12006,"同级别类目超过99"),

    CATEGORY_CATEGORY_ID_NOT_NULL(12007,"父级类目不能为NULL"),
    /**
     *
     */
    SERVICE_ADD_ERROR(13001, "添加权限失败"),

    SERVICE_EDIT_ERROR(13002, "修改权限失败"),

    SERVICE_DELETE_ERROR(13003, "删除权限失败"),

    SERVICE_GET_ERROR(13004, "获取权限失败"),

    SERVICE_LIST_ERROR(13005, "获取权限列表失败"),

    /**
     *
     */
    AUTHENTICATION_ADD_ERROR(14001, "添加权限失败"),

    AUTHENTICATION_EDIT_ERROR(14002, "修改权限失败"),

    AUTHENTICATION_DELETE_ERROR(14003, "删除权限失败"),

    AUTHENTICATION_GET_ERROR(14004, "获取权限失败"),

    AUTHENTICATION_LIST_ERROR(14005, "获取权限列表失败"),

    /**
     *
     */
    FUNCTION_MODULE_ADD_ERROR(15001, "添加功能模块失败"),

    FUNCTION_MODULE_EDIT_ERROR(15002, "修改功能模块失败"),

    FUNCTION_MODULE_DELETE_ERROR(15003, "删除功能模块失败"),

    FUNCTION_MODULE_GET_ERROR(15004, "获取功能模块失败"),

    FUNCTION_MODULE_LIST_ERROR(15005, "获取功能模块列表失败"),

    FUNCTION_MODULE_NOT_SERVICE_ERROR(15006, "关联的服务不能为空"),

    FUNCTION_MODULE_SERVICE_MAPPING_ERROR(15007, "模块关联服务失败"),

    FUNCTION_MODULE_SERVICE_DELETE_ERROR(15008, "模块删除关联服务失败"),

    FUNCTION_MODULE_CANNOT_DELETE(15009, "模块正在被使用不能删除"),

    /**
     *
     */
    SERVICE_MANAGER_ADD_ERROR(16001, "添加权限失败"),

    SERVICE_MANAGER_EDIT_ERROR(16002, "修改权限失败"),

    SERVICE_MANAGER_DELETE_ERROR(16003, "删除权限失败"),

    SERVICE_MANAGER_GET_ERROR(16004, "获取权限失败"),

    SERVICE_MANAGER_LIST_ERROR(16005, "获取权限列表失败"),

    SERVICE_MANAGER_MODULE_MAPPING_ERROR(16006, "获取权限列表失败"),

    SERVICE_MANAGER_CANNOT_DELETE(16007, "服务正在被使用不能删除"),

    /**
     *
     */
    MEMBER_ACCOUNT_ADD_ERROR(17001, "添加权限失败"),

    MEMBER_ACCOUNT_EDIT_ERROR(17002, "修改权限失败"),

    MEMBER_ACCOUNT_DELETE_ERROR(17003, "删除权限失败"),

    MEMBER_ACCOUNT_GET_ERROR(17004, "获取权限失败"),

    MEMBER_ACCOUNT_LIST_ERROR(17005, "获取权限列表失败"),

    /**
     *
     */
    EXCHANGE_RECORD_ADD_ERROR(18001, "添加权限失败"),

    EXCHANGE_RECORD_EDIT_ERROR(18002, "修改权限失败"),

    EXCHANGE_RECORD_DELETE_ERROR(18003, "删除权限失败"),

    EXCHANGE_RECORD_GET_ERROR(18004, "获取权限失败"),

    EXCHANGE_RECORD_LIST_ERROR(18005, "获取权限列表失败"),

    /**
     *
     */
    FAVORITES_ADD_ERROR(19001, "添加权限失败"),

    FAVORITES_EDIT_ERROR(19002, "修改权限失败"),

    FAVORITES_DELETE_ERROR(19003, "删除权限失败"),

    FAVORITES_GET_ERROR(19004, "获取权限失败"),

    FAVORITES_LIST_ERROR(19005, "获取权限列表失败"),

    /**
     *
     */
    SEED_RECORD_ADD_ERROR(20001, "添加权限失败"),

    SEED_RECORD_EDIT_ERROR(20002, "修改权限失败"),

    SEED_RECORD_DELETE_ERROR(20003, "删除权限失败"),

    SEED_RECORD_GET_ERROR(20004, "获取权限失败"),

    SEED_RECORD_LIST_ERROR(20005, "获取权限列表失败"),

    /**
     *
     */
    SEED_ADD_ERROR(21001, "添加权限失败"),

    SEED_EDIT_ERROR(21002, "修改权限失败"),

    SEED_DELETE_ERROR(21003, "删除权限失败"),

    SEED_GET_ERROR(21004, "获取权限失败"),

    SEED_LIST_ERROR(21005, "获取权限列表失败"),

    /**
     *
     */
    WALLET_ADD_ERROR(22001, "添加权限失败"),

    WALLET_EDIT_ERROR(22002, "修改权限失败"),

    WALLET_DELETE_ERROR(22003, "删除权限失败"),

    WALLET_GET_ERROR(22004, "获取权限失败"),

    WALLET_LIST_ERROR(22005, "获取权限列表失败"),

    /**
     *
     */
    RULE_ADD_ERROR(23001, "添加权限失败"),

    RULE_EDIT_ERROR(23002, "修改权限失败"),

    RULE_DELETE_ERROR(23003, "删除权限失败"),

    RULE_GET_ERROR(23004, "获取权限失败"),

    RULE_LIST_ERROR(23005, "获取权限列表失败"),

    /**
     *
     */
    ORDER_ADD_ERROR(24001, "添加权限失败"),

    ORDER_EDIT_ERROR(24002, "修改权限失败"),

    ORDER_DELETE_ERROR(24003, "删除权限失败"),

    ORDER_GET_ERROR(24004, "获取权限失败"),

    ORDER_LIST_ERROR(24005, "获取权限列表失败"),

    ORDER_ITEM_ADD_ERROR(24006, "添加权限失败"),

    ORDER_ITEM_EDIT_ERROR(24007, "修改权限失败"),

    ORDER_ITEM_DELETE_ERROR(24008, "删除权限失败"),

    ORDER_ITEM_GET_ERROR(24009, "获取权限失败"),

    ORDER_ITEM_LIST_ERROR(24010, "获取权限列表失败"),

    ORDER_ITEM_NULL_ERROR(24011, "订单中商品为空"),

    /**
     *
     */
    TRANSACTION_ADD_ERROR(25001, "添加权限失败"),

    TRANSACTION_EDIT_ERROR(25002, "修改权限失败"),

    TRANSACTION_DELETE_ERROR(25003, "删除权限失败"),

    TRANSACTION_GET_ERROR(25004, "获取权限失败"),

    TRANSACTION_LIST_ERROR(25005, "获取权限列表失败"),

    /**
     *
     */
    ORDER_DELIVERY_ADD_ERROR(26001, "添加权限失败"),

    ORDER_DELIVERY_EDIT_ERROR(26002, "修改权限失败"),

    ORDER_DELIVERY_DELETE_ERROR(26003, "删除权限失败"),

    ORDER_DELIVERY_GET_ERROR(26004, "获取权限失败"),

    ORDER_DELIVERY_LIST_ERROR(26005, "获取权限列表失败"),

    /**
     *
     */
    BANNER_ADD_ERROR(27001, "添加权限失败"),

    BANNER_EDIT_ERROR(27002, "修改权限失败"),

    BANNER_DELETE_ERROR(27003, "删除权限失败"),

    BANNER_GET_ERROR(27004, "获取权限失败"),

    BANNER_LIST_ERROR(27005, "获取权限列表失败"),

    /**
     *
     * 栏目管理
     */
    CHANNEL_ADD_ERROR(28001, "添加栏目失败"),

    CHANNEL_EDIT_ERROR(28002, "修改栏目失败"),

    CHANNEL_DELETE_ERROR(28003, "删除栏目失败"),

    CHANNEL_GET_ERROR(28004, "获取栏目失败"),

    CHANNEL_LIST_ERROR(28005, "获取栏目列表失败"),

    CHANNEL_MAX_100(28006,"同级别栏目超过99"),
    /**
     *
     */
    ATTACHMENT_ADD_ERROR(29001, "添加权限失败"),

    ATTACHMENT_EDIT_ERROR(29002, "修改权限失败"),

    ATTACHMENT_DELETE_ERROR(29003, "删除权限失败"),

    ATTACHMENT_GET_ERROR(29004, "获取权限失败"),

    ATTACHMENT_LIST_ERROR(29005, "获取权限列表失败"),

    /**
     *
     */
    DICTIONARIES_ADD_ERROR(30001, "添加权限失败"),

    DICTIONARIES_EDIT_ERROR(30002, "修改权限失败"),

    DICTIONARIES_DELETE_ERROR(30003, "删除权限失败"),

    DICTIONARIES_GET_ERROR(30004, "获取权限失败"),

    DICTIONARIES_LIST_ERROR(30005, "获取权限列表失败"),

    /**
     *
     */
    FILE_RESOURCES_ADD_ERROR(31001, "添加权限失败"),

    FILE_RESOURCES_EDIT_ERROR(31002, "修改权限失败"),

    FILE_RESOURCES_DELETE_ERROR(31003, "删除权限失败"),

    FILE_RESOURCES_GET_ERROR(31004, "获取权限失败"),

    FILE_RESOURCES_LIST_ERROR(31005, "获取权限列表失败"),

    /**
     *
     */
    FOLDER_ADD_ERROR(32001, "添加权限失败"),

    FOLDER_EDIT_ERROR(32002, "修改权限失败"),

    FOLDER_DELETE_ERROR(32003, "删除权限失败"),

    FOLDER_GET_ERROR(32004, "获取权限失败"),

    FOLDER_LIST_ERROR(32005, "获取权限列表失败"),

    /**
     *
     */
    SUPPLIER_MERCHANT_ADD_ERROR(33001, "添加权限失败"),

    SUPPLIER_MERCHANT_EDIT_ERROR(33002, "修改权限失败"),

    SUPPLIER_MERCHANT_DELETE_ERROR(33003, "删除权限失败"),

    SUPPLIER_MERCHANT_GET_ERROR(33004, "获取权限失败"),

    SUPPLIER_MERCHANT_LIST_ERROR(33005, "获取权限列表失败"),

    /**
     *
     */
    SUPPLIER_ADD_ERROR(34001, "添加权限失败"),

    SUPPLIER_EDIT_ERROR(34002, "修改权限失败"),

    SUPPLIER_DELETE_ERROR(34003, "删除权限失败"),

    SUPPLIER_GET_ERROR(34004, "获取权限失败"),

    SUPPLIER_LIST_ERROR(34005, "获取权限列表失败"),

    /**
     *
     */
    REGION_ADD_ERROR(35001, "添加权限失败"),

    REGION_EDIT_ERROR(35002, "修改权限失败"),

    REGION_DELETE_ERROR(35003, "删除权限失败"),

    REGION_GET_ERROR(35004, "获取权限失败"),

    REGION_LIST_ERROR(35005, "获取权限列表失败"),

    /**
     *
     */
    APP_IMAGE_ADD_ERROR(36001, "添加权限失败"),

    APP_IMAGE_EDIT_ERROR(36002, "修改权限失败"),

    APP_IMAGE_DELETE_ERROR(36003, "删除权限失败"),

    APP_IMAGE_LIST_ERROR(36004, "获取权限列表失败"),

    /**
     *
     */
    MEMBER_ADDRESS_ADD_ERROR(37001, "添加权限失败"),

    MEMBER_ADDRESS_EDIT_ERROR(37002, "修改权限失败"),

    MEMBER_ADDRESS_DELETE_ERROR(37003, "删除权限失败"),

    MEMBER_ADDRESS_GET_ERROR(37004, "获取权限失败"),

    MEMBER_ADDRESS_LIST_ERROR(37005, "获取权限列表失败"),

    /**
     *商品类目
     */
    GOODS_CATEGORY_ADD_ERROR(38001, "添加商品类目失败"),

    GOODS_CATEGORY_EDIT_ERROR(38002, "修改商品类目失败"),

    GOODS_CATEGORY_DELETE_ERROR(38003, "删除商品类目失败"),

    GOODS_CATEGORY_GET_ERROR(38004, "获取商品类目失败"),

    GOODS_CATEGORY_LIST_ERROR(38005, "获取商品类目列表失败"),


    /**
     *商品属性
     */
    GOODS_ATTRIBUTE_ADD_ERROR(39001, "添加商品属性失败"),

    GOODS_ATTRIBUTE_EDIT_ERROR(39002, "修改商品属性失败"),

    GOODS_ATTRIBUTE_DELETE_ERROR(39003, "删除商品属性失败"),

    GOODS_ATTRIBUTE_GET_ERROR(39004, "获取商品属性失败"),

    GOODS_ATTRIBUTE_LIST_ERROR(39005, "获取商品属性列表失败"),

    /**
     *商品品牌
     */
    GOODS_BRAND_ADD_ERROR(40001, "添加商品品牌失败"),

    GOODS_BRAND_EDIT_ERROR(40002, "修改商品品牌失败"),

    GOODS_BRAND_DELETE_ERROR(40003, "删除商品品牌失败"),

    GOODS_BRAND_GET_ERROR(40004, "获取商品品牌失败"),

    GOODS_BRAND_LIST_ERROR(40005, "获取商品品牌列表失败"),

    /**
     *商品品牌
     */
    GOODS_COMMENT_ADD_ERROR(41001, "添加商品评论失败"),

    GOODS_COMMENT_EDIT_ERROR(41002, "修改商品评论失败"),

    GOODS_COMMENT_DELETE_ERROR(41003, "删除商品评论失败"),

    GOODS_COMMENT_GET_ERROR(41004, "获取商品评论失败"),

    GOODS_COMMENT_LIST_ERROR(41005, "获取商品评论列表失败"),

    /**
     *商品品牌
     */
    GOODS_ADD_ERROR(42001, "添加商品失败"),

    GOODS_EDIT_ERROR(42002, "修改商品失败"),

    GOODS_DELETE_ERROR(42003, "删除商品失败"),

    GOODS_GET_ERROR(42004, "获取商品失败"),

    GOODS_LIST_ERROR(42005, "获取商品评表失败"),

    GOODS_DETAIL_ADD_ERROR(42006, "获取商品评表失败"),

    GOODS_DETAIL_EDIT_ERROR(42007, "获取商品评表失败"),

    GOODS_DETAIL_DELETE_ERROR(42008, "获取商品评表失败"),

    GOODS_IMAGE_ADD_ERROR(42009, "获取商品评表失败"),

    GOODS_IMAGE_DELETE_ERROR(42010, "获取商品评表失败"),

    /**
     *商品品牌
     */
    GOODS_BUY_RECORD_ADD_ERROR(43001, "添加商品失败"),

    GOODS_BUY_RECORD_DELETE_ERROR(43002, "删除商品失败"),

    GOODS_BUY_RECORD_LIST_ERROR(43003, "获取商品评表失败"),

    /**
     *商品品牌
     */
    GOODS_SCORE_RECORD_ADD_ERROR(44001, "添加商品失败"),

    GOODS_SCORE_RECORD_DELETE_ERROR(44002, "删除商品失败"),

    GOODS_SCORE_RECORD_LIST_ERROR(44003, "获取商品评表失败"),

    /**
     *商品品牌
     */
    GOODS_VIEWS_RECORD_ADD_ERROR(45001, "添加商品失败"),

    GOODS_VIEWS_RECORD_DELETE_ERROR(45002, "删除商品失败"),

    GOODS_VIEWS_RECORD_LIST_ERROR(45003, "获取商品评表失败"),

    /**
     *商品购物车
     */
    SHOPPING_CART_ADD_ERROR(46001, "添加商品购物车失败"),

    SHOPPING_CART_EDIT_ERROR(46002, "修改商品购物车失败"),

    SHOPPING_CART_DELETE_ERROR(46003, "删除商品购物车失败"),

    SHOPPING_CART_GET_ERROR(46004, "获取商品购物车失败"),

    SHOPPING_CART_LIST_ERROR(46005, "获取商品评表失败"),

    /**
     *商品品牌
     */
    SKU_ADD_ERROR(47001, "添加商品失败"),

    SKU_EDIT_ERROR(47002, "修改商品失败"),

    SKU_DELETE_ERROR(47003, "删除商品失败"),

    SKU_GET_ERROR(47004, "获取商品失败"),

    SKU_LIST_ERROR(47005, "获取商品购物车失败"),

    /**
     *商品品牌
     */
    SPU_ADD_ERROR(48001, "添加商品失败"),

    SPU_EDIT_ERROR(48002, "修改商品失败"),

    SPU_DELETE_ERROR(48003, "删除商品失败"),

    SPU_GET_ERROR(48004, "获取商品失败"),

    SPU_LIST_ERROR(48005, "获取商品购物车失败"),

    /**
     *商品品牌
     */
    TGE_ADD_ERROR(49001, "添加商品失败"),

    TGE_EDIT_ERROR(49002, "修改商品失败"),

    TGE_DELETE_ERROR(49003, "删除商品失败"),

    TGE_GET_ERROR(49004, "获取商品失败"),

    TGE_LIST_ERROR(49005, "获取商品购物车失败"),

    /**
     *商品品牌
     */
    REWARD_ADD_ERROR(50001, "添加商品失败"),

    REWARD_EDIT_ERROR(50002, "添加商品失败"),

    REWARD_GET_ERROR(50003, "添加商品失败"),

    REWARD_LIST_ERROR(50004, "获取商品购物车失败");






    private int     code = 0;

    private String  msg = "";

    private ErrorCode() {

    }

    private ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
